package com.lanou.Hero;

public class Subject {
	
	public int health;
	public int nn;
	
	public void attack() {
		
	}

	@Override
	public String toString() {
		return "Subject [health=" + health + ", nn=" + nn + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + health;
		result = prime * result + nn;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Subject other = (Subject) obj;
		if (health != other.health)
			return false;
		if (nn != other.nn)
			return false;
		return true;
	}
	
//	public boolean equals(Object obj) {
//		if(obj == null) {
//			return false;
//		}
//		if(this == )
//	}
}
